#include "../Server.hpp"
int main()
{
    Socket socket;
    bool ret = socket.CreateClient(8088, "127.0.0.1");
    if (ret == false)
        return -1;
    for (int i = 0; i < 3; ++i)
    {
        string str = "hello bitejiuyouke";
        str += to_string(i);
        socket.Send((void *)&str[0], str.size());
        char buffer[1024] = {0};
        ssize_t size = socket.Recv(buffer, 1023);
        if (size >= 0)
        {
            buffer[size] = 0;
            cout << buffer << endl;
        }
        sleep(1);
    }
    return 0;
}